﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VS4CRM.Lib
{
    /// <summary>
    /// Temporary class to decorate real "Context" of the library
    /// </summary>
    public class Context
    {
        public static string CRMServerURL 
        { 
            get
            {
                return Properties.Settings.Default.CRMServerURL;
            }
        }

        public static string OrgName
        {
            get { return Properties.Settings.Default.OrgName; }
        }

        private static string _entitiesDir;
        public static string EntitiesDirectoty
        {
            get { return _entitiesDir != null ? _entitiesDir : "Entities"; }
        }

        private static string _extensionsDir;
        public static string ExtensionsDirectory
        {
            get { return _extensionsDir != null ? _extensionsDir : "Extentions"; }
        }

        private static string _securityRolesDir;
        public static string SecurityRolesDirectory
        {
            get { return _securityRolesDir != null ? _securityRolesDir : "SecurityRoles"; }
        }

        private static string _workflowsDir;
        public static string WorkflowsDirectory
        {
            get { return _workflowsDir != null ? _workflowsDir : "Workflows"; }
        }
    }
}
